package homework01;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请您输入猜测的数字!(100以内的整数)");
        int guessNumber=sc.nextInt();
        for (int i = 0; i < 100; i++) {
            if (guessNumber==88){
                System.out.println("恭喜您猜对了！再见");
                break;
                //break与continue之后都不可以直接写代码是不可到达的代码
            }else{
                System.out.println("不是您要找的数字，请继续输入");
                 guessNumber=sc.nextInt();
            }
        }
    }
}
